import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm';

@Entity('sales')
export class EyemanagerSalesEntity {
  @PrimaryGeneratedColumn({ type: 'bigint', unsigned: true })
  id: number;

  @Column({ type: 'varchar', length: 255, default: '', comment: '名称' })
  name: string;

  @Column({ type: 'varchar', length: 255, default: '', comment: '备注' })
  remark: string;

  @Column({ type: 'varchar', length: 255, default: '', comment: '二维码链接' })
  qrurl: string;

  @Column({ type: 'varchar', length: 255, default: '', comment: '识别码' })
  code: string;

  @Column({ type: 'varchar', default: 0, comment: '状态' })
  status: number;

  @Column({ type: 'varchar', length: 255, default: '', comment: '类型' })
  type: string;

  @CreateDateColumn({ type: 'timestamp', nullable: true })
  created_at: Date;

  @UpdateDateColumn({ type: 'timestamp', nullable: true })
  updated_at: Date;
}